package com.hs.service;

import com.hs.entity.TbUser;
import org.apache.ibatis.annotations.Param;


import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface UserService {
    public List<TbUser> findUserListByRoleId(Integer roleId);

    Integer createAccount(String realName,String password,Integer roleId);

    TbUser queryById(Integer id) throws SQLException;

    /*编辑用户*/
    Integer updateUserForStudent(Map<String,String[]> map)throws SQLException;

    public TbUser queryForForgetPassword(@Param("account") String account,@Param("realname") String realname,@Param("email") String email,@Param("roleid") String roleid,@Param("gender") Integer gender);

    int changeForForgetPassword(@Param("password") String password,@Param("id") Integer id);

    public TbUser login(String account);

    public List<TbUser> findUserList();

    Integer updatePasswordById(String md5, Integer id);

    Integer countUser(String roleId);
}
